package com.elai.tags.domain;

import java.util.Date;

import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户分群对象 base_user_group
 *
 * @author elai
 * @date 2021-06-19
 */
public class BaseUserGroupDO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 分群名称 */
    @Excel(name = "分群名称")
    private String name;

    /** 分群显示名称 */
    @Excel(name = "分群显示名称")
    private String displayName;

    /** 更新方式 */
    @Excel(name = "更新方式")
    private String updateType;

    /** 更新类型按天 */
    private String taskType;

    /** 推送配置 */
    private Long pushId;

    /** 分群规则 */
    private String groupRule;

    /** 预估类型 */
    private String reckonType;

    /** 预估值 */
    private Integer reckonValue;

    /** 运行状态 */
    private String status;

    /** 最后计算状态 */
    private String lastCalcStatus;

    /** 类型 */
    private String type;

    /** 所属用户 */
    private Long userId;

    /** 限制返回数量Y是N否 */
    private String limitFlag;

    /** 创建方式 */
    @Excel(name = "创建方式")
    private String buildType;

    /** 用户属性 */
    private String userAttribute;

    /** 查询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resultTime;

    /** 查询结果 */
    @Excel(name = "查询结果")
    private Long resultNum;

    public void setId(Integer id)
    {
        this.id = id;
    }
    public Integer getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }
    public String getName()
    {
        return name;
    }

    public void setDisplayName(String displayName)
    {
        this.displayName = displayName;
    }
    public String getDisplayName()
    {
        return displayName;
    }

    public void setUpdateType(String updateType)
    {
        this.updateType = updateType;
    }
    public String getUpdateType()
    {
        return updateType;
    }

    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }
    public String getTaskType()
    {
        return taskType;
    }

    public void setPushId(Long pushId)
    {
        this.pushId = pushId;
    }
    public Long getPushId()
    {
        return pushId;
    }

    public void setGroupRule(String groupRule)
    {
        this.groupRule = groupRule;
    }
    public String getGroupRule()
    {
        return groupRule;
    }

    public void setReckonType(String reckonType)
    {
        this.reckonType = reckonType;
    }
    public String getReckonType()
    {
        return reckonType;
    }

    public void setReckonValue(Integer reckonValue)
    {
        this.reckonValue = reckonValue;
    }
    public Integer getReckonValue()
    {
        return reckonValue;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }
    public String getStatus()
    {
        return status;
    }

    public void setLastCalcStatus(String lastCalcStatus)
    {
        this.lastCalcStatus = lastCalcStatus;
    }
    public String getLastCalcStatus()
    {
        return lastCalcStatus;
    }

    public void setType(String type)
    {
        this.type = type;
    }
    public String getType()
    {
        return type;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public Long getUserId()
    {
        return userId;
    }

    public void setLimitFlag(String limitFlag)
    {
        this.limitFlag = limitFlag;
    }
    public String getLimitFlag()
    {
        return limitFlag;
    }

    public void setBuildType(String buildType)
    {
        this.buildType = buildType;
    }
    public String getBuildType()
    {
        return buildType;
    }

    public void setUserAttribute(String userAttribute)
    {
        this.userAttribute = userAttribute;
    }
    public String getUserAttribute()
    {
        return userAttribute;
    }

    public void setResultTime(Date resultTime)
    {
        this.resultTime = resultTime;
    }
    public Date getResultTime()
    {
        return resultTime;
    }

    public void setResultNum(Long resultNum)
    {
        this.resultNum = resultNum;
    }
    public Long getResultNum()
    {
        return resultNum;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("displayName", getDisplayName())
            .append("remark", getRemark())
            .append("updateType", getUpdateType())
            .append("taskType", getTaskType())
            .append("pushId", getPushId())
            .append("reckonType", getReckonType())
            .append("reckonValue", getReckonValue())
            .append("status", getStatus())
            .append("lastCalcStatus", getLastCalcStatus())
            .append("type", getType())
            .append("userId", getUserId())
            .append("limitFlag", getLimitFlag())
            .append("buildType", getBuildType())
            .append("userAttribute", getUserAttribute())
            .append("resultTime", getResultTime())
            .append("resultNum", getResultNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
